import 'package:flutter/material.dart';

class RoundNumButton extends StatelessWidget {
  final Function onPress;
  final int num;
  RoundNumButton({this.onPress, this.num});

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: onPress,
      child: Container(
        width: 75,
        height: 75,
        decoration: BoxDecoration(
          image: DecorationImage(
            image: AssetImage('assets/img/button.png'),
          ),
        ),
        child: Center(
          child: Text(
            num.toString(),
            style: TextStyle(
              fontSize: 20,
              fontWeight: FontWeight.bold,
            ),
          ),
        ),
      ),
    );
  }
}
